import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Untitled extends  SeleneseTestBase{
	@Before
	public void setUp() throws Exception {
		//firefox iexplore "c:\\program files\\internet explorer\\iexplore.exe" 
		selenium = new DefaultSelenium("localhost", 5555, "*firefox", "http://www.baidu.com/");
		selenium.start();
	}
	@Test
	public void testUntitled() throws Exception {
		selenium.windowMaximize();
		selenium.open("/");
		selenium.type("id=kw", "helloworld");
		selenium.click("id=su");
		selenium.waitForPageToLoad("30000");
	}
	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
